package com.maiworld.api.controller;

import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.maiworld.api.dto.GroundDTO;
import com.maiworld.api.vo.ResultVO;
import com.maiworld.seller.service.GroundService;

@RestController
@RequestMapping("/ground")
public class GroundController {

	@Reference
	private GroundService groundService;
	
	//(测试通过)
	@RequestMapping("/findOne")
	public ResultVO<GroundDTO> findOne(String status){
		return groundService.findGround(status);
	}
	
	//我的驾校信息(测试通过)
	@RequestMapping("findGroou")
	public Map<String, Object> findGroou(String status,String openid, String session_key){
		return groundService.findGroou(status);
	}
	//报名首页获取驾校信息  (测试通过)
	@RequestMapping("findGroundSid")
	public Map<String, Object> findGroundSid(Long sid, String status,String openid,String session_key){
		return groundService.findGroundSid(sid, status,openid);
	}
}
